﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityFrameworkSample.DB.Model
{
    [Serializable]
    public class Blog
    {
        [Required]
        [Key]
        public int BlogId { get; set; }
        public string Name { get; set; }

        [MaxLength(1024)]
        public string Url { get; set; }

        public int Rating { get; set; }

        public virtual List<Post> Posts { get; set; }
    }
}
